<template>
	<view class="myWrap">
			<tm-listitem title="退出登录" @click="show= true"></tm-listitem>
				<tm-dialog v-model="show" content="确定退出登录吗？" @confirm="exit"></tm-dialog>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				show:false
			}
		},
		methods: {
			exit(){
				uni.redirectTo({
					url:"/pages/login/login",
					success() {
						uni.removeStorageSync("userinfo")
					}
				})
			}
		}
	}
</script>

<style lang="scss">
.myWrap{
	position: relative;
	width: 100vw;
	height: 100%;
}
</style>
